#ifndef __HARDWARE_H
#define __HARDWARE_H

#include "stm32g4xx_hal.h"
#include "adc.h"
#include "stdbool.h"

struct KEY_TpyeDef{
	uint16_t age;
	bool short_flag;
	bool long_flag;
	bool press;
	
	uint8_t double_ageEN;
	uint8_t douibleage;
	bool double_flag;
};
extern struct KEY_TpyeDef key[5];

float ADC_GetVlaue(ADC_HandleTypeDef *hadc);
void LED_Disp(uint8_t state);
uint8_t Key_Read(void);
void Key_Scan_Long(void);


#endif
